_m_o_d_e specifies how source and destination colors are combined. It must
be GGGGLLLL____FFFFUUUUNNNNCCCC____AAAADDDDDDDD____EEEEXXXXTTTT, GGGGLLLL____FFFFUUUUNNNNCCCC____SSSSUUUUBBBBTTTTRRRRAAAACCCCTTTT____EEEEXXXXTTTT,
GGGGLLLL____FFFFUUUUNNNNCCCC____RRRREEEEVVVVEEEERRRRSSSSEEEE____SSSSUUUUBBBBTTTTRRRRAAAACCCCTTTT____EEEEXXXXTTTT, GGGGLLLL____MMMMIIIINNNN____EEEEXXXXTTTT, GGGGLLLL____MMMMAAAAXXXX____EEEEXXXXTTTT, or
GGGGLLLL____LLLLOOOOGGGGIIIICCCC____OOOOPPPP.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The blend equation determines how a new pixel (the ``source'' color) is
combined with a pixel already in the framebuffer (the ``destination''
color).
GGGGLLLL____MMMMIIIINNNN____EEEEXXXXTTTT
sets the blend equation so that each component of the result color
is the minimum of the corresponding components of the source and
destination colors.
GGGGLLLL____MMMMAAAAXXXX____EEEEXXXXTTTT
sets the blend equation so that each component of the result color
is the maximum of the corresponding components of the source and
destination colors.
GGGGLLLL____LLLLOOOOGGGGIIIICCCC____OOOOPPPP
sets the blend equation so that each component of the result color
is a bitwise logical combination of the corresponding components of
the source and destination colors. Use the ffffggggllllLLLLooooggggiiiiccccOOOOpppp command to
specify the logical operator.
The remaining blend equations use the source and destination blend
factors specified by ffffggggllllBBBBlllleeeennnnddddFFFFuuuunnnncccc. See ffffggggllllBBBBlllleeeennnnddddFFFFuuuunnnncccc for a description of
the various blend factors.
In the equations that follow, source and destination color components are
referred to as (Rs,Gs,Bs,As) and (Rd,Gd,Bd,Ad), respectively. The result
color is referred to as (Rr,Gr,Br,Ar). The source and destination blend
factors are denoted (sR,sG,sB,sA) and (dR,dG,dB,dA), respectively. For
these equations all color components are understood to have values
Is like GGGGLLLL____FFFFUUUUNNNNCCCC____AAAADDDDDDDD____EEEEXXXXTTTT except the product of the source factor and
the source color is componentwise subtracted from the product of the
destination factor and the destination color. The result is clamped
to the range [0,1].
Rr = max(0, Rd dR - Rs sR)
Gr = max(0, Gd dG - Gs sG)
Br = max(0, Bd dB - Bs sB)
Ar = max(0, Ad dA - As sA)
The GGGGLLLL____MMMMIIIINNNN____EEEEXXXXTTTT and GGGGLLLL____MMMMAAAAXXXX____EEEEXXXXTTTT equations are useful for applications that
analyze image data (image thresholding against a constant color, for
example). The GGGGLLLL____LLLLOOOOGGGGIIIICCCC____OOOOPPPP equation is most commonly used with GGGGLLLL____XXXXOOOORRRR for
reversible drawing. The GGGGLLLL____FFFFUUUUNNNNCCCC____AAAADDDDDDDD____EEEEXXXXTTTT equation is useful for anti-
aliasing and transparency, among other things.
Initially the blend equation is set to GGGGLLLL____FFFFUUUUNNNNCCCC____AAAADDDDDDDD____EEEEXXXXTTTT.
NNNNOOOOTTTTEEEESSSS
The GGGGLLLL____MMMMIIIINNNN____EEEEXXXXTTTT, GGGGLLLL____MMMMAAAAXXXX____EEEEXXXXTTTT, and GGGGLLLL____LLLLOOOOGGGGIIIICCCC____OOOOPPPP equations do not use the
source or destination factors, only the source and destination colors.
EEEERRRRRRRROOOORRRRSSSS
GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____EEEENNNNUUUUMMMM is generated if _m_o_d_e is not one of GGGGLLLL____FFFFUUUUNNNNCCCC____AAAADDDDDDDD____EEEEXXXXTTTT,
GGGGLLLL____MMMMIIIINNNN____EEEEXXXXTTTT, or GGGGLLLL____LLLLOOOOGGGGIIIICCCC____OOOOPPPP.
GGGGLLLL____IIIINNNNVVVVAAAALLLLIIIIDDDD____OOOOPPPPEEEERRRRAAAATTTTIIIIOOOONNNN is generated if ffffggggllllBBBBlllleeeennnnddddEEEEqqqquuuuaaaattttiiiioooonnnnEEEEXXXXTTTT is executed
between the execution of ffffggggllllBBBBeeeeggggiiiinnnn and the corresponding execution of
ffffggggllllGGGGeeeetttt with an argument of GGGGLLLL____BBBBLLLLEEEENNNNDDDD____EEEEQQQQUUUUAAAATTTTIIIIOOOONNNN____EEEEXXXXTTTT.
ffffggggllllGGGGeeeettttSSSSttttrrrriiiinnnngggg with an argument of GGGGLLLL____EEEEXXXXTTTTEEEENNNNSSSSIIIIOOOONNNNSSSS.
This feature is not part of standard GL. The extensions string of
ffffggggllllGGGGeeeettttSSSSttttrrrriiiinnnngggg will contain the name bbbblllleeeennnndddd____mmmmiiiinnnnmmmmaaaaxxxx if GGGGLLLL____MMMMIIIINNNN____EEEEXXXXTTTT and
GGGGLLLL____MMMMAAAAXXXX____EEEEXXXXTTTT are supported. It will contain the name bbbblllleeeennnndddd____llllooooggggiiiicccc____oooopppp
if GGGGLLLL____LLLLOOOOGGGGIIIICCCC____OOOOPPPP is supported in RGB mode. It will contain the name
bbbblllleeeennnndddd____ssssuuuubbbbttttrrrraaaacccctttt if GGGGLLLL____FFFFUUUUNNNNCCCC____SSSSUUUUBBBBTTTTRRRRAAAACCCCTTTT____EEEEXXXXTTTT and
GGGGLLLL____FFFFUUUUNNNNCCCC____RRRREEEEVVVVEEEERRRRSSSSEEEE____SSSSUUUUBBBBTTTTRRRRAAAACCCCTTTT____EEEEXXXXTTTT are supported.